package jfundertow.jfintegrate;

import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;

import java.util.List;

public class HelloController extends Controller {
    public void index() {
        List<Record> records = Db.find("select * from jf_product");
        renderJson(records);
       // renderText("abc");

    }

    /*
    public void hot() {
        renderText("Hot!!!");
    }
    */
}